<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>中华古树</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
    <div class="rtree" id="rtree" style="margin-left: 30px;margin-top: 30px">
        <nav class="navbar navbar-default navbar-fixed-top" role="navigation" style="background: white">
            <div class="container-fluid">
                <div class="navbar-header">
                    <a class="navbar-brand" href="#" style="margin-left: 300px">林业共享平台</a>
                </div>
                <div>
                    <form class="navbar-form navbar-left" role="search">
                        <div class="form-group">
                            <input type="text" class="form-control" placeholder="Search">
                        </div>
                    </form>
                    <ul class="nav navbar-nav navbar-right" style="margin-right: 300px">
                        <li><a href="/beiying/html/index.html"><span></span>首页</a></li>
                        <li><a href="#"><span></span>供应</a></li>
                        <li><a href="#"><span></span>需求</a></li>
                        <li><a href="#"><span></span>市场</a></li>
                        <li><a href="#"><span class="glyphicon glyphicon-user"></span> 注册</a></li>
                        <li><a href="#"><span class="glyphicon glyphicon-log-in"></span> 登录</a></li>
                    </ul>
                </div>
            </div>
        </nav>
            <h3 style="margin-top: 80px">中华古树</h3>
            <ul th:each="list: ${list}" style="margin-left: 30px;margin-top: 20px">
                <li style="list-style:none">
                    <a th:href="@{'/rtree/show?treeName=' + ${list.treeName}}" th:text="${list.treeName}" style="font-size: 20px;"></a>
                </li>
                <li style="list-style:none">
                    <div th:text="${list.lName}"></div>
                </li>
                <li style="list-style:none">
                    <div th:text="${list.seedName}" class="pull-left"></div>
                </li>
                <li style="list-style:none">
                    <div th:text="${#strings.abbreviate(list.treeComment,60)}" class="pull-left" style="margin-left: 30px"></div>
                </li>
            </ul>
    </div>
   <div  class="c-pages" style="margin-left: 100px;margin-top: 100px">
       <div class="cp-item pull-left">
           <span>共</span>
           <span id="cp-count" th:text="${list.size()}"></span>
           <span>条</span>
       </div>
       <div class="cp-item pull-left">
           <span id="curr-page" th:text="${rowIndex}"></span>
           <span>/</span>
           <span id="total-page">61</span>
       </div>
       <div class="cp-item pull-left">
           <a href="/beiying/rtree/getlist?rowIndex=1">
               <button id="home">首页</button>
           </a>
           <a  id="preva" href="">
               <button id="prev">上页</button>
           </a>
           <a href="" id="nexta">
               <button id="next">下页</button>
           </a>
           <a href="/beiying/rtree/getlist?rowIndex=61">
               <button id="last">尾页</button>
           </a>
       </div>
       <div class="cp-item pull-left">
           <a href="" id="gotoa">
               <button id="goTo">转到</button>
           </a>
           <input type="number" id="goToPage" />
           <span>页</span>
       </div>
   </div>
   <script th:src="@{/js/page.js}"></script>
</body>
</html>